/**
 * 角色，保存ID和NAME
 **/
const role = {
  state: {
    id: 0,
    name: ''
  },
  mutations: {
    setRoleId: (state, id) => {
      state.id = id
    },
    setRoleName: (state, name) => {
      state.name = name
    }
  }
}

export default role
